feat(tmux-sessionizer): preview project tree in the directory picker#415
Draft
etrobert-bot wants to merge 2 commits into
Draft
feat(tmux-sessionizer): preview project tree in the directory picker#415etrobert-bot wants to merge 2 commits into
etrobert-bot wants to merge 2 commits into
Conversation
In the project picker, show an `eza --tree` preview of the highlighted directory (falling back to `ls`), resolving the name to its path with the same case logic the script already uses. The preview-window is responsive (stacks on top when the popup is narrow) so nothing overflows. Adds eza to runtimeInputs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Panes are never narrower than 80 columns, where the 80%-popup is wide enough for a side-by-side preview. Use a plain 'right:60%' and drop the responsive stacked-layout alternative. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Split out of #412 (part 2 of 2).
Adds an
eza --tree --level=2preview (falling back tols) to the project/directory picker, so you see a project's layout before switching to it. The highlighted name is resolved to a path with the samesetup/doc/~/workcase logic the script already uses. Uses the responsive--preview-window 'right,60%,<45(up,55%)'so the preview stacks vertically in a narrow popup.Adds
ezatoruntimeInputs(falls back tolsfrom coreutils if eza ever fails).Companion PR: #414 (session-pane preview for the
-epicker).Verified:
nix build .#tmux-sessionizersucceeds (shellcheck passes),ezaconfirmed on the wrapped script's PATH.🤖 Generated with Claude Code